class com.Lithyem.ColorTools extends Object{
	function ColorTools(){
	
	}
	
	public static function getHexFromString(n:String):Number{
		var l = n.length;
		if(l == 7){
			var sn = n.substring(1,7);
		}else{
			var sn = n;
		}
		
		var nn = Number('0x'+sn);
		return nn;
	}
	
	public static function getStringFromHex(c:Number):String{
		var c_obj:Color = new Color(_root);
		c_obj.setRGB(c);
		var s:String = c_obj.getRGB().toString(16);
		return s;
	
	}
}


